package net.qhzw.vip.qiyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.qhzw.vip.qiyu.entity.DtsUserBill;
import net.qhzw.vip.qiyu.model.IncomeTodayDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DtsUserBillMapper extends BaseMapper<DtsUserBill> {


    /***
     * 查询今日系统扣费
     * @param shopId
     * @return
     */
    String queryTodaysIncome(@Param("shopId") Long shopId);


    /***
     * 查询今日收入明细
     * @param todayStart
     * @param todayEnd
     * @return
     */
    List<IncomeTodayDetails> incomeTodayDetails(@Param("todayStart") String todayStart,
                                                @Param("todayEnd") String todayEnd,
                                                @Param("shopId") Long shopId);

    void deleteByUserId(Long userId);


}